<script>
    
    // 1.拷贝对象
    let person1 = {name:"张三", age:25}
    let someone = {...person1}
    console.log(someone)

    // 2.合并对象
    let name = {name:"小李"}
    let age = {age:18}
    let person2 = {...name, ...age}
    console.log(someone)

</script>